KERNELDIR := ${KERNEL_SRC}
CURRENT_PATH := $(shell pwd)

target := mymodule
obj-m := $(target).o
build := kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules

clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean